<h1>借书记录</h1>
<table class="listing">
  <tr>  
  <thead>
    <th >借书人</th>
    <th >书名</th>
    <th >借书时间</th>
    <th >还书时间</th>
    <th >是否超期</th>
  </thead>
  </tr>
<% @histry_records.each_with_index do |histry,i| %>
  <tr class="line<%=i%2%>">
    <td><%=h histry.reader_name %></td>
    <td><%=h histry.book_name%></td>
    <td><%=h histry.out_date%></td>
    <td><%=h histry.in_date%></td>
    <td><%=h histry.is_overtime ? '是':'否' %></td>    
  </tr>
<% end %>
</table>

<%=render :partial => 'shared/paginate' , :object => @histry_records_pages%>
<br />
